package models

import "github.com/jinzhu/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"size:50;not null"`
	Password string `gorm:"type:varchar(40)"`
	NickName string `gorm:"Column:nickname;type:text"`
	Phone    string `gorm:"size:15"`
	Role     int    `gorm:"type:tinyint(2);comment:'角色'";default:1`
	IsValid  int    `gorm:"Column:is_valid;type:tinyint(1);default:1"`
}
